package com.lzlg.lzlglab.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * @Description: 自定义的响应状态码
 * @Author: GX Cui
 * @Date 10:18 2024/7/17
 */
@Getter
@AllArgsConstructor
public enum ResponseCode {
    SUCCESS(200,"请求成功"),
    failure(500,"请求失败，原因未知，请查看后台日志"),

    USERNAME_EXIST(1001,"用户名称存在"),
    LOGIN_DEFINED(1002,"用户登陆失败"),

    DATA_NOT_EXIST(2002,"数据不存在");

    private Integer code;
    private String msg;
}
